import { Global, Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { User } from './user.entity'
import { Logs } from '../logs/logs.entity'
import { Roles } from '../role/roles.entity'
import { UserService } from './user.service'

@Global()
@Module({
  imports: [TypeOrmModule.forFeature([User, Logs, Roles])],
  exports: [TypeOrmModule, UserService],
  providers: [UserService]
})
export class UserModule {}
